package com.clei.dto.file;

import java.util.List;

/**
 * 虚拟文件
 *
 * @author Y
 * @date 2024-10-18
 **/
public class VirFile {

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 是否是目录
     */
    private boolean isDirectory;

    /**
     * 子文件
     * 目录文件才有
     */
    private List<VirFile> children;

    /**
     * 文件url
     * 数据文件才有
     */
    private String fileUrl;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public boolean isDirectory() {
        return isDirectory;
    }

    public void setDirectory(boolean directory) {
        isDirectory = directory;
    }

    public List<VirFile> getChildren() {
        return children;
    }

    public void setChildren(List<VirFile> children) {
        this.children = children;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
}
